/**
 * Created by PanJiaChen on 16/11/18.
 */


/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
    return /^(https?:|mailto:|tel:)/.test(path)
    // 找 以  http  https :  ||  mailto:   tel:     true  false
}

/**
 * @param {string} str
 * @returns {Boolean}
 */